<div class="dialog-container mdd-dialog mdl-shadow--8dp mdl-layout--fixed-header SMES-dialog B0207_judgeSpc-dialog c-mdd-page" ng-init="dialog.init();" style="background-color: #fafafa" page-type="Dialog" _transclude-elem="[object Object]">
    <div class="kmi-header-row">
        <div class="header-title" ng-bind="dialog._title | translate"></div>
        <!--More Menu-->

        <!--Close button-->
        <div class="kmi-side-btn right" ng-click="dialog.hide();">
            <img src="image/icons/clear.png" />
            <div class="kmi-can-click"></div>
        </div>
    </div>
    <div class="kmi-layout-main-content" style="flex: 1">
        <!--Page-->
        <div class="kmi-layout-page">
            <div class="mdd-layout__with-toolbar mdd-layout c-mdd-layout" layout-name="B0207_judgeSpc" page-name="" page-type="Dialog" with-toolbar="Y" reload="N" _transclude-elem="[object Object]" style="grid-template-columns: repeat(2, auto 1fr)">
                <label class="label" ng-show="dialog._event['check_qty'].isShown != 'N'" style="" ng-bind="'B0207_judgeSpc.columns.check_qty' | translate"></label>
                <div class="value" ng-show="dialog._event['check_qty'].isShown != 'N'" style="">
                    <input type="text" readonly="" ng-model="dialog.inspectionInfo.check_qty" ng-click="dialog._event['check_qty'].click(dialog.inspectionInfo.check_qty, {event:$event});" ng-disabled="dialog._event['check_qty'].isDisabled == 'Y'" />
                </div>
                <div item-name="employee_no" class="kmi-text-fields" style="grid-column-start: span 2">
                    <label class="label" ng-bind="'B0207.employee_no' | translate"></label>
                    <input class="employee_no" ng-model="dialog.inspectionInfo.employee_no" ng-keydown="dialog.input_employee_no($event);" ng-class="[dialog.isCheck(dialog.inspectionInfo.legal_employee_no)]" />
                    <div class="tip search" ng-click="dialog.check_employee_no();"><img src="image/icons/search.png" /></div>
                </div>
                <label class="label" ng-show="dialog._event['check_time'].isShown != 'N'" style="" ng-bind="'B0207_judgeSpc.columns.check_time' | translate"></label>
                <div class="value" ng-show="dialog._event['check_time'].isShown != 'N'" style=""><label class="value" ng-bind="dialog.inspectionInfo.check_time" mdl-toast="{{dialog.inspectionInfo.check_time}}" mdl-toast-passive="true"></label></div>
                <label class="label" ng-show="dialog._event['plot_no'].isShown != 'N'" style="" ng-bind="'B0207_judgeSpc.columns.plot_no' | translate"></label>
                <div class="value" ng-show="dialog._event['plot_no'].isShown != 'N'" style=""><label class="value" ng-bind="dialog.inspectionInfo.plot_no" mdl-toast="{{dialog.inspectionInfo.plot_no}}" mdl-toast-passive="true"></label></div>
                <label class="label" ng-show="dialog._event['area_no'].isShown != 'N'" style="" ng-bind="'B0207_judgeSpc.columns.area_no' | translate"></label>
                <div class="value" ng-show="dialog._event['area_no'].isShown != 'N'" style=""><label class="value" ng-bind="dialog.inspectionInfo.area_no" mdl-toast="{{dialog.inspectionInfo.area_no}}" mdl-toast-passive="true"></label></div>
                <label class="label" ng-show="dialog._event['op_no'].isShown != 'N'" style="" ng-bind="'B0207_judgeSpc.columns.op_no' | translate"></label>
                <div class="value" ng-show="dialog._event['op_no'].isShown != 'N'" style=""><label class="value" ng-bind="dialog.inspectionInfo.op_no" mdl-toast="{{dialog.inspectionInfo.op_no}}" mdl-toast-passive="true"></label></div>
                <label class="label" ng-show="dialog._event['serialNumberCollect'].isShown != 'N'" style="" ng-bind="'B0207_judgeSpc.columns.serialNumberCollect' | translate"></label>
                <div class="value" ng-show="dialog._event['serialNumberCollect'].isShown != 'N'" style="">
                    <input type="text" id="serialNumberCollect" ng-model="dialog.serialNumberCollect" ng-keypress="dialog._event['serialNumberCollect'].change(dialog.serialNumberCollect, {event:$event});" ng-disabled="dialog._event['serialNumberCollect'].isDisabled == 'Y'" placeholder="" />
                    <div class="tip qrcode" ng-click="dialog._event['serialNumberCollect'].click(dialog.serialNumberCollect, {event:$event});" ng-disabled="dialog._event['serialNumberCollect'].isDisabled == 'Y'">
                        <img src="image/icons/QRCode.png" />
                    </div>
                </div>
                <div class="mdd-list c-mdd-list" null="" ng-show="dialog._event['serialNumberList'].isShown != 'N'" style="height:{{dialog._event['B0207_judgeSpc'].GetfillHeight()}};grid-column-start:span 4;" list-name="B0207_Spc_List" list-bind="dialog.serialNumberList" list-alias="dialog.detail_SN" enable-select="N" select-all="N" page-name="" page-type="Dialog" _transclude-elem="[object Object]">
                    <div class="kmi-list column-selector" kmi-scrollbar="200px" column-selector-id="B0207_Spc_List" style="flex: 1">
                        <div class="kmi-list__header">
                            <div item-name="remove_row" class="kmi-list__column width-fixed" style="flex: 0 0 40px">
                                <button class="mdl-button mdl-button--icon" ng-click="dialog.removeAll();">
                                    <img src="image/icons/delete.png" />
                                </button>
                            </div>
                            <div class="kmi-list__column head-controls" style="flex: 0 0 40px" ng-show="dialog._event['dialog.serialNumberList.serial'].isShown != 'N'">
                                <div class="filter" ng-show="dialog._objserialNumberList.header[1].isFilter">
                                    <input ng-model="dialog._objserialNumberList.filterColumns['serial']" />
                                    <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objserialNumberList.header[1].isFilter = false;dialog._objserialNumberList.filterColumns['serial'] = '';">clear</i>
                                </div>

                                <div class="order" ng-hide="dialog._objserialNumberList.header[1].isFilter">
                                    <i class="material-icons search" style="z-index: 1" ng-click="dialog._objserialNumberList.header[1].isFilter = true">search</i>
                                    <label ng-bind="'B0207_Spc_List.columns.serial' | translate"></label>
                                    <i class="material-icons" ng-show="dialog._objserialNumberList.queryOrder == 1">{{!dialog._objserialNumberList.header[1].order?'':''}}</i>
                                    <div class="kmi-can-click" ng-click="dialog.orderResult(1, 'serial', 'dialog._objserialNumberList');"></div>
                                </div>
                            </div>
                            <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.serialNumberList.serial_no'].isShown != 'N'">
                                <div class="filter" ng-show="dialog._objserialNumberList.header[2].isFilter">
                                    <input ng-model="dialog._objserialNumberList.filterColumns['serial_no']" />
                                    <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objserialNumberList.header[2].isFilter = false;dialog._objserialNumberList.filterColumns['serial_no'] = '';">clear</i>
                                </div>

                                <div class="order" ng-hide="dialog._objserialNumberList.header[2].isFilter">
                                    <i class="material-icons search" style="z-index: 1" ng-click="dialog._objserialNumberList.header[2].isFilter = true">search</i>
                                    <label ng-bind="'B0207_Spc_List.columns.serial_no' | translate"></label>
                                    <i class="material-icons" ng-show="dialog._objserialNumberList.queryOrder == 2">{{!dialog._objserialNumberList.header[2].order?'':''}}</i>
                                    <div class="kmi-can-click" ng-click="dialog.orderResult(2, 'serial_no', 'dialog._objserialNumberList');"></div>
                                </div>
                            </div>
                        </div>
                        <div class="kmi-list__row-content">
                            <div class="kmi-list__row" id="B0207_Spc_List_result_list" ng-repeat="item in dialog._event['dialog.serialNumberList'].getPages(dialog.detail_SN, dialog._objserialNumberList.PageConfig, dialog._objserialNumberList.filterColumns, dialog._objserialNumberList.header[dialog._objserialNumberList.queryOrder]) track by $index" ng-class="{'is-select':dialog._event['dialog.serialNumberList'].checkSelect(item, {index:$index, event:$event})}">
                                <div item-name="remove_row" class="kmi-list__column" style="flex: 0 0 40px; z-index: 1">
                                    <button class="mdl-button mdl-button--icon" ng-click="dialog.removeRow($index);">
                                        <img src="image/icons/delete.png" />
                                    </button>
                                </div>
                                <div item-name="serial" class="kmi-list__column" style="flex: 0 0 40px; z-index: 1">{{$index + 1}}</div>
                                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.serial_no" ng-if="dialog._event['dialog.serialNumberList.serial_no'].isShown != 'N'"></div>
                                <div class="kmi-can-click" ng-click="dialog._event['dialog.serialNumberList'].rowClick(item, {index:$index, event:$event});"></div>
                            </div>
                        </div>
                    </div>
                    <div class="page-content">
                        <div class="page-icon">
                            <img src="image/icons/dropleft.png" />
                            <div class="kmi-can-click" ng-click="dialog.prevPage(dialog._objserialNumberList.PageConfig);"></div>
                        </div>
                        <label ng-bind="dialog.pageInfo(dialog._objserialNumberList.PageConfig);"></label>
                        <div class="page-icon">
                            <img src="image/icons/dropright.png" />
                            <div class="kmi-can-click" ng-click="dialog.nextPage(dialog._objserialNumberList.PageConfig);"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="mdd-button-tool">
                <div class="tool-bar"></div>
                <div class="tool-bar" style="justify-content: flex-end">
                    <div class="kmi-button kmi-button-confrim btn-confirm" ng-disabled="dialog._fn['confirm'].isDisabled == 'Y'" ng-hide="dialog._fn['confirm'].isShown == 'N'" style="width: 100px">
                        <label ng-bind="'common.btn.confirm' | translate"></label>
                        <div class="kmi-can-click" ng-click="dialog._fn['confirm'].click('confirm');"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
